	<?php
	include_once 'init.php';
	if (isset ( $_POST ['login'] )) {
		$user = UserUtils::login ( $_POST ['login'], $_POST ['password'] );
		if ($user != null) {
			$_SESSION['curUser'] = $user;
			header ( "Location: bookmarks.php" );
		}
	}
	?>


<?php require 'header' ?>

	<div class="main_page">
		<div class="header"></div>
			<div class="content_b">
				<div class ="content_i">
						<div style="position: absolute; top: 108px; left: 108px;">
						<form method="post" action="index.php">
							<div style="font-size: 16; font-weight: bold;"> Login
							<input type="text" name="login" />
							</div><br/>
							<div style="font-size: 16; font-weight: bold;">Haslo
							<input type="password" name="password" />
							</div><br/> 
							<input type="submit" value="Zaloguj" />
						</form>
						<br/>
					<a href="register.php">Rejestracja</a>
					</div>
				</div>
				
	
<?php require 'footer' ?>







